package com.xhd.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhd.reggie.dto.DishDto;
import com.xhd.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入口味数据，dish，dish_flavor
    public void saveWithFlavor(DishDto dishDto);
    //查询菜品和口味信息
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品信息和口味信息
    public void updateWithFlavor(DishDto dishDto);
    //删除菜品和口味
    public void removeWithFlavor(List<Long> ids);
}
